import {api} from "@/utils/request";
import { id } from "element-plus/es/locales.mjs";


// 分页查询订单列表

export const GetOrderDataList=(page:number,limit:number,data:string)=>{
    return api({
        url:"/order/order-info/getPage/"+page+"/"+limit,
        method:"get",
        params: {
            consigneeName: data
        }
    })
}

// 新增订单
export const AddOrderApi=(data:any)=>{
    return api({
        url:"/order/order-info/save",
        method:"post",
        data: data
    })
}


// 修改订单
export const UpdateOrderApi=(data:any)=>{
    return api({
        url:"/order/order-info/update",
        method:"put",
        data: data
    })
}

// 删除订单

export const DeleteByIdOrderApi=(id:number)=>{
    return api({
        url:"/order/order-info/deleteById/"+id,
        method:"delete",
    })
}

